package com.gitee.wsl.compose.richtext

import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.gitee.wsl.compose.chart.sample.SampleView
import com.gitee.wsl.compose.richtext.htmleditor.HtmlEditorContent
import com.gitee.wsl.compose.ui.richtext.RichText


val richTextEditorSampleView = object : SampleView {
    override val name: String = "RichTextEditor View"

    override val thumbnail = @Composable {
        RichText(
            modifier = Modifier.padding(8.dp)
        ) {
            Text(name)
        }
    }

    override val content: @Composable () -> Unit = @Composable {
        HtmlEditorContent { }
    }
}